/**
 * Copyright (c) 2002-2011 旭鸣信息
 * All rights reserved. 
 * File：FrontOrderLogDaoImpl.java
 * History:
 *       Apr 16, 2012: Initially created, liuzhi.
 */
package com.xteam.ecsystem.dao.Impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.xteam.ecsystem.dao.IFrontOrderLogDao;
import com.xteam.ecsystem.entities.LogOrderLog;

/**
 * 前端用户-订单日志信息数据访问实现类
 */
@Repository
@SuppressWarnings("unchecked")
public class FrontOrderLogDaoImpl extends DDLPrefix implements IFrontOrderLogDao {
	
	@Autowired
	private BaseDaoImpl baseDao;
	
	public void saveOrderLog(String lolOtype, String lolOrder, String lolUtype,
			String lolUser, String lolAddress, Date lolTime, String lolOremark){
		try {
			LogOrderLog orderLog = new LogOrderLog();
			orderLog.setLolOtype(lolOtype);
			orderLog.setLolOrder(lolOrder);
			orderLog.setLolUtype(lolUtype);
			orderLog.setLolUser(lolUser);
			orderLog.setLolAddress(lolAddress);
			orderLog.setLolTime(lolTime);
			orderLog.setLolOremark(lolOremark);
			
			this.baseDao.save(orderLog);
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
